﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModelFormManage.aspx.cs"
    Inherits="Whir_System_Module_CommonModel_ModelFormManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

    <!--提示文字-->

    <script src="../../Js/common.js" type="text/javascript"></script>

    <script language="javascript">
        showhint('1','<b>表单的概念</b><br/>表单对应的是后台中的“内容添加（修改）页”，表单管理是管理这些录入数据页面的字段的显示和隐藏，以及搜索字段的设置。');
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:Repeater ID="Repeater1" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E2E0E0">
                    <tr>
                        <td height="26" align="center" class="grid_Title" width="20%">表单名称</td>
                        <td width="" align="center" class="grid_Title">字段列表</td>
                        <td width="10%" align="center" class="grid_Title">管理操作</td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td height="22" align="center" bgcolor="#FFFFFF">
                        <%# Eval("formName") %>
                    </td>
                    <td align="center" bgcolor="#FFFFFF">
                        <%# GetFieldsName(Eval("modelFormID"))%>
                    </td>
                    <td align="center" bgcolor="#FFFFFF"><a href='ModelForm.aspx?Action=Modify&ModelFormID=<%# Eval("modelFormID") %>'
                        title="表单修改">
                        <img src="../../image/CommonImage/eip_edit.gif" style="border: 0px;" /></a>&nbsp;<a
                            href='ModelForm.aspx?Action=Delete&ModelFormID=<%# Eval("modelFormID") %>&ModelID=<%= ModelID %>'
                            title="表单删除">
                            <img src="../../image/CommonImage/eip_deleted.gif" style="border: 0px;" /></a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <div class="command">
            <asp:Button ID="btnAddModelForm" runat="server" Text="添加表单" CssClass="btn_default"
                OnClick="btnAddModelForm_Click" />
            <asp:Button ID="btnCancel" runat="server" CssClass="btn_default" OnClick="btnCancel_Click"
                Text="返回" />
                
        </div>
    </form>
</body>
</html>
